<?php
//database2.php
//Desc: Script provides the connection string to Bugsby database and creates a PDO object
//Author: Brian Murphy (Group 1)
//CS633, BU, Summer 2012, Term 1

//Database Connection information
	$dsn = 'mysql:host=mysql.x90x.net;dbname=u943300679_bugsby2';
	$username = 'u943300679_usr1';
	$password = 'letmein';
	
//establish connection -- if fails catch and display database connection error message	
	try {
		$db = new PDO($dsn, $username, $password);
	}
	catch (PDOException $e) {
		$error_message = $e->getMessage();
		include('database_error.php');
		exit();	
	}
?>